<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String status = request.getAttribute("status")+"";
	String redirect = null!=request.getAttribute("redirect")?request.getAttribute("redirect")+"":"";
	String msg = "";
	if(null!=request.getAttribute("msg")){
		msg = request.getAttribute("msg")+"";
	}
	String errorJson = "";
	if(null!=request.getAttribute("errorJson")){
		errorJson = request.getAttribute("errorJson")+"";
	}
%>
<script>
	<%
		if("SUCCESS".equalsIgnoreCase(status)){
			%>
				top.$.messager.show({
					showType:'fade',
					msg:"操作成功",
					title:"提示",
					timeout:"1000"
				});
				top.XF.hideError();
				top.XF.NAV.navTo('/check');
				<%			
		}else{
			%>
			  	top.$.messager.show({
					title:'提示',
					msg:'操作失败:'+"<%=msg%>",
					timeout:5000,
					showType:'slide'
				  });
				var errorJson = '<%=errorJson%>';
				errorJson = JSON.parse(errorJson);
				top.XF.refreshAfterAddFaild(errorJson);
			<%
		}
	%>
</script>